<template>
	<div class="header-hot">
		<!-- 顶部标签 -->
		<div class="hot-top">
			<span class="iconfont fire">&#xe6e7;</span>
			<label class="hot-til">本周热门榜单</label>
				<label class="hot-right">
					全部榜单
					<span class="iconfont">&#xe637;</span>
				</label>
		</div>
		<!-- 列表 -->
		<ul>
			<li class="hot-list" v-for="(item,index) in HotList" :key="index">
				<img :src="item.hotURL"/>
				
				<p class="item-til">{{item.hottil}}</p>
				<p >
					<span>￥{{item.price}}</span>起
				</p>
			</li>
			
		</ul>
	</div>
</template>

<script >
	export default {
		props:['HotList'],//接收父组件传递的数组
		data() {
			return {
				
			}
		}
	}
</script>

<style scoped >
	.header-hot{
		width: 100%;
		background-color: white;
		font-size: 0.28rem;
		margin-top: 0.4rem;
		overflow: hidden;
		padding-bottom: 0.2rem;
	}
	.hot-top{
		line-height: 1rem;
		padding-left: 0.2rem;
	}
	.fire{
		color: orangered !important;
		font-size: 0.48rem;  /* 24px*/
	}
	.hot-til{
		color:#212121;
		font-weight: bold;
		font-size: 0.4rem;
	}
	.hot-right{
		float: right;
		color: #616161;
		font-size: 0.32rem; /* 16px*/
		/* display: inline-block; */
		margin-right: 0.2rem;
	}
	.header-hot ul{
		width: 100%;
		/* 不换行 */
		white-space: nowrap;
		overflow-y: hidden;
		overflow-x: scroll;
		padding-bottom: 0.3rem;
	}
	.hot-list{
		width: 2rem;
		height: 2rem;
		/* background-color: skyblue; */
		padding: 0.2rem;
		display: inline-block;
		text-align: center;
	}
	.hot-list img{
		width: 100%;
		height: 100%;
	}
	.item-til{
		margin-top: 0.2rem;
		margin-bottom: 0.2rem;
		overflow: hidden;
		text-overflow: ellipsis; /* 文字符号   省略号*/  
		white-space: nowrap; /* 文字不允许换行*/
	}
</style>
